package com.guang.springbootjacson.controller;

import com.guang.springbootjacson.bean.ResponseData;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liguang
 * @date 2022/6/1 17:37
 */
@RestController
public class ResponseDataController {

    @RequestMapping("seven")
    public ResponseData getResponseData(){
        ResponseData responseData = new ResponseData();
        responseData.setId(666);
        return responseData;  // 前端接收的是：{"id":666}，如果想要666的话，那么需要对这里的返回值来做一个处理
    }
}
